package shisi;

/**
 * Created by mc on 2016/8/3.
 */
public class wu
{
    public static void main(String[] arges)
    {
        check1();
    }
    public static void check1()
    {
        String qq = "12345";
        String regex = "[1-9][0-9]{4,14}";
        boolean flag=qq.matches(regex);
        if(flag)
            System.out.println(qq+"ok");
        else
            System.out.println(qq+"不合法");
    }
}
